﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;
using System.IO;
using attendance.L3Bussobject;
using attendance.L2Busslogic;

namespace attendance.L4View.student
{
    public partial class student_add__register_paizhao : System.Web.UI.Page
    {
        public static string ID;
        public static string name;
        public static string numb;
        public static string photo;
        protected void Button1_Click(object sender, EventArgs e)
        {
            studentOB mydd = new studentOB();
            mydd = studentBL.Getwordsingle(Session["add"].ToString());
            ID = mydd.ID;
            name = mydd.name;
            numb = mydd.numb;
            photo = mydd.photo;
            studentOB myword = new studentOB();
            myword.ID = ID;
            myword.name = name;
            myword.numb = numb;
            myword.photo = Session["xxx"].ToString();
            if (studentBL.Savemark(myword))
            {
                Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('注册成功 ');</script>");
                Response.Redirect("~/L4View/student/student_login.aspx");
                return;
            }
            else
            {
                Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('注册不成功 ');</script>");
                return;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}